<div class="table_header">
    {phrase var='answer.edit_level'}
</div>
<form action="{url link='admincp.answer.level.edit'}" method="post">
    <div class="table">
        <div class="table_left">
            {phrase var='answer.label'}
        </div>
        <div class="table_right">
            <input type="text" name="val[name]" value="{value type='input' id='name'}" id="name" size="30" />
        </div>
    </div>
    <div class="table">
        <div class="table_left">
            {phrase var='answer.group_min_point'}
        </div>
        <div class="table_right">
            <input type="text" name="val[minpoint]" value="{value type='input' id='minpoint'}" id="minpoint" size="30" />
            <input type="hidden" name="val[id]" value="{value type='input' id='id'}" id="id">
        </div>
    </div>

    <div class="table">
        <div class="table_left">
            {phrase var='answer.group_max_point'}
        </div>
        <div class="table_right">
            <input type="text" name="val[maxpoint]" value="{value type='input' id='maxpoint'}" id="maxpoint" size="30" />
        </div>
    </div>


    <div class="table">
        <div class="table_left">
            {phrase var='answer.group_name'}
        </div>
        <div class="table_right">
            <select name="val[group_id]" id="group_id" style="width: 180px;">

                {foreach from=$aGroups item=aItem}
                <option value="{$aItem.user_group_id}" {$aItem.select}>{$aItem.title}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="table">
        <div class="table_left">
            {phrase var='answer.previous_group'}
        </div>
        <div class="table_right">
            <select name="val[previous_group]" id="previous_group" style="width: 180px;">
                <option value="2">{phrase var='answer.select'}</option>
                {foreach from=$aGroups item=aItem}
                <option value="{$aItem.user_group_id}" {$aItem.selectPreviousGroup}>{$aItem.title}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="table_clear">
        <input type="submit" value="{phrase var='answer.submit'}" class="button" name="add_category">
    </div>
</form>